<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>bootstrap</title>

    <link rel="stylesheet" href="css/bootstrap.min.css">

    <script src="js/jquery.min.js"></script>
    <script src="js/bootstrap.min.js"></script>

    <style>

        .banner-image-container {
            border: 2px dotted pink;
        }

        .bond-cupcake {
            /* 设置透明度为 0 */
            opacity: 0;
        }

        .responsive-carousel {
            border: 2px dotted blue;
            position: absolute;
            left: 0;
            top: 0;
            right: 0;
            /* 这个图片在这里 */
            background: transparent url('images/cat.jpg') 0 0 no-repeat;
            /* 这行让鑫悦给你讲一下, ^_^ */
            background-size: cover;
        }
    </style>

</head>

<body>

<div class="banner-image-container">

    <div id="carousel-example-generic" class="responsive-carousel carousel slide" data-ride="carousel">

        <!-- Indicators -->
        <ol class="carousel-indicators">
            <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
            <li data-target="#carousel-example-generic" data-slide-to="1"></li>
        </ol>

        <!-- Wrapper for slides -->
        <div class="carousel-inner" role="listbox">
            <div class="item active">
                <img class="bond-cupcake" src="images/cat.jpg">
                <div class="carousel-caption">
                    <h1>鑫悦姐姐左边是美佳(ღ˘⌣˘ღ), 轮播图只有一张图, 轮了两次 :p</h1>
                </div>
            </div>
            <div class="item">
                <img class="bond-cupcake" src="images/cat.jpg">
                <div class="carousel-caption">
                    <h1>美佳右边是鑫悦(ღ˘⌣˘ღ), 轮播图只有一张图, 轮了两次 :p</h1>
                </div>
            </div>
        </div>

        <!-- Controls -->
        <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
            <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
            <span class="sr-only">Previous</span>
        </a>
        <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
            <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
            <span class="sr-only">Next</span>
        </a>
    </div>

</div>

<script>
    $(function() {
        $('.carousel').carousel()
    });
</script>

</body>

</html>
